package com.tiantianbook.mvpretrofitrxjavademo.mainframe.main.model;


import com.tiantianbook.mvpretrofitrxjavademo.bean.Result;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * name:DemoService
 * author:moo.
 * date:2016/8/31.
 * instruction:
 */
public interface DemoService {
    String ROOT_URL = "http://apis.juhe.cn/";
    String APP_KEY = "908577a73b7ac5db76c6cdec267a132e";

    @GET("{path}/ip2addr")
    Observable<Result> getResult(@Path("path") String path, @Query("ip") String ip, @Query("key") String appKey);
//    Call<Result> getResult(@Query("ip") String ip, @Query("key") String appKey);
}
